package com.tang.model.decorator.v2;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/19 22:19
 * @Desc
 * @Remarks
 */
public class EggDecorator extends Decorator {
    public EggDecorator(com.tang.model.decorator.v2.Pancakes pancakes) {
        super(pancakes);
    }

    @Override
    protected String getMsg() {
        return pancake.getMsg() + "+1个鸡蛋";
    }

    @Override
    protected Integer getPrice() {
        return pancake.getPrice() + 1;
    }
}
